

import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)
import Login from '../pages/login'
import Register from '../pages/login/register'
import Home from '../pages/home'
import Me from '../pages/me'
import NotFound from '../pages/Notfound'
import Sell from '../pages/sell'
import Cart from '../pages/cart'
import Type from '../pages/type'
import Search from '../pages/search'
import More from '../pages/more'
import Dynamic from '../pages/me/dynamic'

const router = new Router({
    mode:'history',
    routes: [
        {path:'/',redirect:'./login'},
        {path:'/login',component:Login,meta:{noLogin:true}},
        {path:'/register',component:Register,meta:{noLogin:true}},
        {path:'/home',component:Home,meta:{noLogin:true}},
        {path:'/me',component:Me,meta:{noLogin:true}},
        {path:'/sell',component:Sell,meta:{noLogin:true}},
        {path:'/cart',component:Cart,meta:{noLogin:true}},
        {path:'/search',component:Search,meta:{noLogin:true}},
        {path:'/type',component:Type,meta:{noLogin:true}},
        {path:'/more',component:More,meta:{noLogin:true}},
        {path:'/me/dynamic',component:Dynamic,meta:{noLogin:true}},
        {path:'*',component:NotFound,meta:{noLogin:true}}
    ]
})

export default router


